﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.DebuggerVisualizers;
using System.Windows;

namespace CoreRay.Debugging
{
    public class BinaryTreeVisualizer : DialogDebuggerVisualizer
    {
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            Window window = new Window();
            window.Width = 1024;
            window.Height = 768;
            window.ShowInTaskbar = false;

            BinaryTreeVisualizerControl treeVisualizer = new BinaryTreeVisualizerControl();
            treeVisualizer.BinaryTree = objectProvider.GetObject();

            window.Content = treeVisualizer;
            window.ShowDialog();
        }
    }
}
